Skip to content

fix: improve CLI onboarding auth recovery - #59

Merged
jlitola merged 2 commits into
mainfrom
assorted-bowler
May 5, 2026
Merged

fix: improve CLI onboarding auth recovery#59
jlitola merged 2 commits into
mainfrom
assorted-bowler

Conversation

@jlitola

@jlitola jlitola commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Let githits init own its special auth recovery flow instead of root auto-login exiting early.
  • Add login browser fallback/manual URL output and callback server cleanup on auth wait failures.
  • Improve auth troubleshooting output and keep example --json auth errors machine-readable.

Verification

  • bun test src/shared/auto-login.test.ts src/cli.test.ts src/commands/init/init.test.ts src/commands/login.test.ts src/commands/auth-status.test.ts src/commands/example.test.ts
  • bun run build

jlitola added 2 commits May 5, 2026 14:37
Let init own its special authentication recovery flow, add browser fallback and callback cleanup for login, and make auth troubleshooting/JSON errors more consistent.
Avoid claiming setup is ready when authentication failed, wait for the OAuth callback server to bind before opening the browser, and make recovery guidance more actionable.
@jlitola
jlitola merged commit 0020b79 into main May 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant